<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<title>资产归总</title>
<meta name="nav" content="1" />
<meta name="acc" content="_assets" />
<script>
		$(document).ready(function() {
		 $("input[id='buydate']").addClass("Wate").bind("click", function(){
    	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		 $("#importdata").click(function(){
			 var url = "${ctx}/asset/assets/information_import.action";
			 openWindowAsDialog(url);
		 });
		});
</script>
</head>
<body>
<div id="heading" class="asset"><h6>资产列表</h6></div>
<form id="mainForm" action="${ctx }/asset/assets/information.action" method="get" class="yform">
<div id="message"><s:actionmessage theme="custom" cssClass="success" /></div>
<div id="filter">
<ul>
<li>资产类型：<input type="text" name="filter_LIKES_name" value="${param['filter_LIKES_name']}" /></li>
<li>数量：<input type="text" id="buydate" name="filter_GED_buydate" value="${param['filter_GED_buydate']}"  /></li>
<li>总价值:<pt:labels type="insideOrgDept" prompt="全部" name="filter_LIKES_department.id" default="filter_LIKES_department.id"></pt:labels> </li>
<li>总面积:<pt:labels type="insideOrgDept" prompt="全部" name="filter_LIKES_department.id" default="filter_LIKES_department.id"></pt:labels> </li>
</ul>
<div class="type-button"><input onclick="search()" type="button" value="查询" align="right" class='search'/></div>
</div>
<div id="content" >
<table id="contentTable"  class="datalist">
	<tr>
		<th><a id="createDate" href="javascript:sort('createDate','asc')">序号</a></th>
		<th><a id="name" href="javascript:sort('name','asc')">资产名称</a></th>
		<th><a id="code" href="javascript:sort('code','asc')">资产编号</a></th>
		<th><a id="department.depName" href="javascript:sort('department.depName','asc')">所属部门</a></th>
		<th><a id="buydate" href="javascript:sort('buydate','asc')">购置时间</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="asset" varStatus="status">
		<tr>
			<td>${page.first+status.index}</td>
			<td>${asset.name}</td>
			<td>${asset.code}</td>
			<td>${asset.department.depName}</td>
			<td>${asset.buydate}</td>
			<td><a href="${ctx}/asset/assets/information!input.action?id=${asset.id}">编辑</a>
			<a href="${ctx}/asset/assets/information!delete.action?id=${asset.id}" onclick="return confirmDelete();">删除</a></td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" flush="true" />
<div class="type-button">
<input  type="button" class="button"  id="importdata"  value="导入" />
<input  type="button" class="add" onclick="location.href='${ctx}/asset/assets/information_input.action'"  value="新增" /> 
</div>
</form>
</body>
